package com.zheng.common.base;

import com.baomidou.mybatisplus.annotations.TableField;
import com.zheng.common.util.Pagination;

import java.io.Serializable;

/**
 * Created by likun on 2018/5/3.
 */
public abstract class PageEntity<T> implements Serializable {

    @TableField(exist = false)
    protected Pagination pagination;

    public Pagination getPagination() {
        return pagination;
    }

    public void setPagination(Pagination pagination) {
        this.pagination = pagination;
    }

    /**
     * 主键值
     */
    protected abstract Serializable pkVal();
}
